.class public Lcom/estrongs/android/widget/b;
.super Lcom/estrongs/android/widget/RealViewSwitcher;
.source "ContentViewSwitcher.java"

# interfaces
.implements Lcom/estrongs/android/ui/drag/d;
.implements Lcom/estrongs/android/ui/drag/c;


# instance fields
.field private G:Lcom/estrongs/android/ui/drag/a;

.field protected H:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/android/view/FileGridViewWrapper;",
            ">;"
        }
    .end annotation
.end field

.field private I:I

.field private J:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/widget/RealViewSwitcher;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 2
    new-instance p2, Ljava/util/ArrayList;

    invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V

    iput-object p2, p0, Lcom/estrongs/android/widget/b;->H:Ljava/util/List;

    const/4 p2, 0x0

    .line 3
    iput-boolean p2, p0, Lcom/estrongs/android/widget/b;->J:Z

    const/high16 p2, 0x41200000    # 10.0f

    .line 4
    invoke-static {p1, p2}, Les/fy;->a(Landroid/content/Context;F)I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/widget/b;->I:I

    return-void
.end method


# virtual methods
.method public a()V
    .locals 0

    return-void
.end method

.method public a(I)V
    .locals 3

    .line 1
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getChildCount()I

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->getWindowListManager()Les/hy;

    move-result-object v0

    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getChildCount()I

    move-result v1

    add-int/2addr v1, p1

    .line 3
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getChildCount()I

    move-result v2

    rem-int/2addr v1, v2

    .line 4
    invoke-virtual {v0, v1}, Les/hy;->c(I)V

    .line 5
    invoke-super {p0, p1}, Lcom/estrongs/android/widget/RealViewSwitcher;->a(I)V

    return-void
.end method

.method public a(Landroid/view/View;Z)V
    .locals 0

    return-void
.end method

.method public a(Lcom/estrongs/fs/g;Lcom/estrongs/android/view/FileGridViewWrapper;Z)V
    .locals 6

    .line 6
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/widget/b;->G:Lcom/estrongs/android/ui/drag/a;

    sget v4, Lcom/estrongs/android/ui/drag/a;->Q:I

    move-object v1, p1

    move-object v2, p2

    move-object v3, p0

    move v5, p3

    invoke-virtual/range {v0 .. v5}, Lcom/estrongs/android/ui/drag/a;->a(Lcom/estrongs/fs/g;Lcom/estrongs/android/view/FileGridViewWrapper;Lcom/estrongs/android/ui/drag/d;IZ)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 7
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    return-void
.end method

.method public b()V
    .locals 3
    .annotation build Landroid/annotation/TargetApi;
        value = 0x8
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/widget/b;->H:Ljava/util/List;

    if-eqz v0, :cond_1

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/widget/b;->H:Ljava/util/List;

    iget v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/view/FileGridViewWrapper;

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->t()Landroidx/recyclerview/widget/RecyclerView;

    move-result-object v0

    const/4 v1, 0x0

    .line 4
    :try_start_0
    iget v2, p0, Lcom/estrongs/android/widget/b;->I:I

    neg-int v2, v2

    invoke-virtual {v0, v1, v2}, Landroidx/recyclerview/widget/RecyclerView;->smoothScrollBy(II)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :catchall_0
    :cond_1
    :goto_0
    return-void
.end method

.method public c()V
    .locals 3
    .annotation build Landroid/annotation/TargetApi;
        value = 0x8
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/widget/b;->H:Ljava/util/List;

    if-eqz v0, :cond_1

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/widget/b;->H:Ljava/util/List;

    iget v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/view/FileGridViewWrapper;

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->t()Landroidx/recyclerview/widget/RecyclerView;

    move-result-object v0

    const/4 v1, 0x0

    .line 4
    :try_start_0
    iget v2, p0, Lcom/estrongs/android/widget/b;->I:I

    invoke-virtual {v0, v1, v2}, Landroidx/recyclerview/widget/RecyclerView;->smoothScrollBy(II)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :catchall_0
    :cond_1
    :goto_0
    return-void
.end method

.method public d()V
    .locals 0

    return-void
.end method

.method public getScrollViewRect()Landroid/graphics/Rect;
    .locals 7

    const/4 v0, 0x2

    new-array v0, v0, [I

    .line 1
    invoke-virtual {p0, v0}, Landroid/widget/ViewAnimator;->getLocationOnScreen([I)V

    .line 2
    new-instance v1, Landroid/graphics/Rect;

    const/4 v2, 0x0

    aget v3, v0, v2

    const/4 v4, 0x1

    aget v5, v0, v4

    aget v2, v0, v2

    .line 3
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getMeasuredWidth()I

    move-result v6

    add-int/2addr v2, v6

    aget v0, v0, v4

    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getMeasuredHeight()I

    move-result v4

    add-int/2addr v0, v4

    invoke-direct {v1, v3, v5, v2, v0}, Landroid/graphics/Rect;-><init>(IIII)V

    return-object v1
.end method

.method public h()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/widget/b;->J:Z

    return v0
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/widget/b;->J:Z

    if-eqz v0, :cond_0

    const/4 p1, 0x0

    return p1

    .line 2
    :cond_0
    invoke-super {p0, p1}, Lcom/estrongs/android/widget/RealViewSwitcher;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p1

    return p1
.end method

.method public removeViewAt(I)V
    .locals 2

    .line 1
    :try_start_0
    invoke-super {p0, p1}, Lcom/estrongs/android/widget/RealViewSwitcher;->removeViewAt(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 2
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 3
    :goto_0
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    if-gt p1, v0, :cond_0

    add-int/lit8 v0, v0, -0x1

    .line 4
    :cond_0
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getChildCount()I

    move-result p1

    const/4 v1, 0x1

    if-ne p1, v1, :cond_1

    const/4 v0, 0x0

    .line 5
    :cond_1
    invoke-virtual {p0, v0}, Lcom/estrongs/android/widget/b;->setCurrentScreen(I)V

    return-void
.end method

.method public setCurrentScreen(I)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/widget/RealViewSwitcher;->setCurrentScreen(I)V

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->getWindowListManager()Les/hy;

    move-result-object p1

    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    invoke-virtual {p1, v0}, Les/hy;->c(I)V

    return-void
.end method

.method public setDragController(Lcom/estrongs/android/ui/drag/a;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/widget/b;->G:Lcom/estrongs/android/ui/drag/a;

    return-void
.end method

.method public setGestureListener(Lcom/estrongs/android/pop/app/w;)V
    .locals 0

    return-void
.end method

.method public setGridViewWrappers(Ljava/util/List;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/estrongs/android/view/FileGridViewWrapper;",
            ">;)V"
        }
    .end annotation

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/widget/b;->H:Ljava/util/List;

    return-void
.end method

.method public setPageLocked(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/widget/b;->J:Z

    return-void
.end method
